package com.jtapps.remall;

//Class for useful methods

import android.app.AlertDialog;
import android.content.Context;
import android.widget.Toast;

public class Use {
	static int number_launch=0;
	static String tab="";
	
	//Create a Toast
	public static void createToast (Context context,String text,int duration) {
		Toast toast= Toast.makeText(context, text, duration);
		toast.show();
		
	}
	
	//Create a AlertDialog
	public static void createAlert (Context context,String title, String text ) {
		AlertDialog alertDialog=new AlertDialog.Builder(context).create();
		alertDialog.setTitle(title);
		alertDialog.setMessage(text);
		alertDialog.show();
		
	}
	
	public static void onTab (String tabtext) {
		tab=tabtext;
	}
	
	public static String getTab () {
		return tab;
	}

}
